﻿namespace SAM.Framework.Repository.Repositories.Pager
{
    public class SortInfo
    {
        /// <summary>
        /// 排序字符名
        /// </summary>
        public string FieldName { get; set; }

        public SortType SortType { get; set; }

        public SortInfo(string fieldName, SortType sortType)
        {
            this.FieldName = fieldName;
            this.SortType = SortType;
        }
    }

    public enum SortType
    {
        ASC,
        DESC
    }
}
